<?php

namespace app\common\model\merchant;

use app\common\model\BaseModel;

/**
 * 商户库存回收记录
 */
class OrderRecycleModel extends BaseModel
{
    /**
     *  添加日志
     * @param $mer_id |商户
     * @param $shop_id |店铺
     * @param $product_code | 商品code
     * @param $op_user |操作人
     * @param $num |变动数量
     */
    public function order_recycle_add($mer_id, $shop_id, $product_code, $op_user, $num)
    {
        $this->db()->insert([
            'mer_id' => $mer_id,
            'shop_id' => $shop_id,
            'product_code' => $product_code,
            'num' => $num,
            'op_user' => $op_user
        ]);

    }
}